package com.subang.function.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 申论答案点赞对象 shenlun_answer_like
 * 
 * @author subei
 * @date 2025-03-05
 */
public class ShenlunAnswerLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞id */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    @Excel(name = "问题id")
    private String questionId;

    /** 答案id */
    @Excel(name = "答案id")
    private String answerId;

    /** 点赞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date likeTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setAnswerId(String answerId) 
    {
        this.answerId = answerId;
    }

    public String getAnswerId() 
    {
        return answerId;
    }
    public void setLikeTime(Date likeTime) 
    {
        this.likeTime = likeTime;
    }

    public Date getLikeTime() 
    {
        return likeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("questionId", getQuestionId())
            .append("answerId", getAnswerId())
            .append("likeTime", getLikeTime())
            .toString();
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }
}
